package com.yeyks.service.impl;

import com.yeyks.dal.dao.ActivityInfoMapper;
import com.yeyks.dal.domain.ActivityInfo;
import com.yeyks.dal.domain.UserInfo;
import com.yeyks.service.ActivityInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author fuchangshuai
 * @date 2019/4/23 0023
 */
@Service
@Slf4j
public class ActivityInfoServiceImpl implements ActivityInfoService {

    @Autowired
    private ActivityInfoMapper activityInfoMapper;

    /**
     * 通过活动id获取活动详情
     *
     * @param id
     * @return
     */
    @Override
    public ActivityInfo info(Integer id) {
        return activityInfoMapper.selectByPrimaryKey(Long.valueOf(id));
    }
}
